package mymyoux.utils
{

	public class Classes
	{
		public static function isClassOf(elmt:*, cl:Class):Boolean
		{
			if(elmt == null) 
			{
				return false;
			}
	//		trace(elmt+"("+cl+":"+Object(elmt).constructor+")");
			return Object(elmt).constructor == cl;
		}
		public static function areSameClasses(elmt:*, elmt2:*):Boolean
		{
			if(elmt == null || elmt2 == null)
			{
				return false;
			}
			return Object(elmt).constructor == Object(elmt2).constructor;
		}
	}
}